import { resolve } from "path";

export const PKG_NAME = "vue-ant-plus";
export const PKG_PREFIX = "@vue-ant-plus";

export const projRoot = resolve(__dirname, "..", "..");

export const pkgRoot = resolve(projRoot, "packages");

export const mainRoot = resolve(pkgRoot, "vue-ant-plus");

export const compRoot = resolve(pkgRoot, "components");

export const themeRoot = resolve(pkgRoot, "theme-chalk");

export const utilRoot = resolve(pkgRoot, "utils");

export const buildRoot = resolve(projRoot, "internal");

// Docs
export const docsDirName = "docs";
export const docRoot = resolve(projRoot, docsDirName);
export const vpRoot = resolve(docRoot, ".vitepress");

/** `/dist` */
export const buildOutput = resolve(projRoot, "dist");

/** `/dist/vue-ant-plus` */
export const mainOutput = resolve(buildOutput, "vue-ant-plus");

export const projPackage = resolve(projRoot, "package.json");
export const compPackage = resolve(compRoot, "package.json");
export const themePackage = resolve(themeRoot, "package.json");
export const utilPackage = resolve(utilRoot, "package.json");
export const docPackage = resolve(docRoot, "package.json");
export const mainPackage = resolve(mainRoot, "package.json");
export const peerPackage = resolve(
  projRoot,
  "node_modules/ant-design-vue/package.json"
);
